import requests
import base64
# 1. 动态保存字体文件
def save_font_file():
    font_path = f"./static/font/maoyan.woff"
    url = "https://piaofang.maoyan.com/dashboard-ajax/movie?orderType=0&uuid=19a96febf26c8-0936e74aa0b87b-26061b51-144000-19a96febf26c8&timeStamp=1763471210491&User-Agent=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzE0Mi4wLjAuMCBTYWZhcmkvNTM3LjM2&index=439&channelId=40009&sVersion=2&signKey=e18fa51817d34f038f70d4226013ae9e&WuKongReady=h5"
    headers = {"User_Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36"}
    response = requests.get(url, headers=headers)
    print(response)
    print(response.json())


# 2. 获取字体映射表
# 3. 解析字体返回标准字符
# 4. 请求获取目标字段


if __name__ == '__main__':
    save_font_file()